<template>
	<view class="arrange-content-box">
		<department-card />
		<view class="sub-title">
			排班管理
		</view>
		<view class="sub-box">
			<view class="box1">
				排班
			</view>
			<view class="box2">
				<view class="bz" @click="workTypeClick">
					班种管理
				</view>
				<view class="sp">
					审批
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	import DepartmentCard from '@/components/DepartmentCard/index.vue'
	import COMMON from "@/api/common/index.js"
	export default {
		components:{
			DepartmentCard
		},
		data() {
			return {
				
			};
		},
		onShow() {
			COMMON.getSchdule({})
		},
		methods: {
			depaDetailClick(){
				uni.navigateTo({
					url:"/pages/departmentDetail/departmentDetail"
				})
			},
			workTypeClick(){
				uni.navigateTo({
					url:"/pages/workTypeList/workTypeList"
				})
			}
		}
		
	}
</script>

<style lang="less">
view{
		box-sizing: border-box;
	}
	.arrange-content-box{
		min-height: 100%;
		background-color: #FFFFFF;
		padding: 0rpx 30rpx;
		overflow: hidden;
		.header-box{
			width: 100%;
			height: 260rpx;
			border: 2rpx solid #eaeefb;
			border-radius: 10rpx;
			box-shadow: 1rpx 1rpx 1rpx 1rpx rgba(221, 221, 221, 0.48);
			.box1{
				border-bottom: solid 1rpx #eaeefb;
			}
			.box1, .box2{
				display: flex;
				padding: 10rpx 30rpx;
				padding-right: 15rpx;
				flex-direction: column;
				.text-box1{
					display: flex;
					justify-content: space-between;
					align-items: center;
					.name{
						font-size: 30rpx;
						color: #121213;
					}
					.name1{
						font-size: 30rpx;
						color: #75777d
					}
					.desc-box{
						display: flex;
						.desc-text{
							font-size: 28rpx;
							color: #75777d
						}
						.arrow{
							width: 50rpx;
							height: 42rpx;
						}
					}
				}
				.text-box2{
					display: flex;
					align-items: center;
					font-size: 24rpx;
					color: #75777d;
					.bh-text{
						margin-left: 60rpx;
					}
				}
				.btw{
					justify-content: space-between;
					margin-top: 10rpx;
					.yq-btn{
						font-size: 24rpx;
						border: solid 2rpx #0098f2;
						padding: 0rpx 16rpx;
						border-radius: 40rpx;
						color: #0098f2;
						margin-right: 10rpx;
					}
					.ry{
						width: 50rpx;
						height: 50rpx;
						line-height: 50rpx;
						text-align: center;
						border-radius: 50%;
						background-color: #0098f2;
						color: #FFFFFF;
					}
				}
			}
		}
		.sub-title{
			margin-top: 30rpx;
			font-size: 30rpx;
		}
		.sub-box{
			width: 100%;
			height: 230rpx;
			margin-top: 30rpx;
			display: flex;
			.box1{
				flex: 1;
				border-radius: 12rpx;
				color: #FFFFFF;
				display: flex;
				justify-content: center;
				align-items: center;
				font-size: 36rpx;
				background-color: #28a4f5;
			}
			.box2{
				flex: 1;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				color: #FFFFFF;
				font-size: 36rpx;
				.bz{
					background-color: #00b8ff;
					flex: 1;
					margin: 3rpx 6rpx;
					border-radius: 12rpx;
					display: flex;
					justify-content: center;
					align-items: center;
				}
				.sp{
					background-color: #34bbfb;
					flex: 1;
					margin: 3rpx 6rpx;
					border-radius: 12rpx;
					display: flex;
					justify-content: center;
					align-items: center;
				}
			}
		}
	}
</style>
